﻿using BaseAuthRole.Domain.OutPut;
using BaseAuthRole.DTO.Auth;
using RS.BaseModel.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BaseAuthRole.IService
{
    public interface IApplicationService
    {
        int AddApplication(ApplicationModel model);

        CommonResult CheckApp(string appid, string secret);
        CommonResult<GetAppAccessTokenModelOutPut> GetAppAccessTokenModel(string appid, string secret);

        ApplicationModel GetApplicationModel(string appid);

        AppAccessTokenModel GetAppAccessTokenModel(string id);

        IEnumerable<ApplicationModel> GetApplicationModel(int pagenum, int pagesize, string condition, string orderby, out long count, object para = null);

        int UpdateApplicationModel(ApplicationModel model);
        int DeleteApplicationModel(string id);
    }
}
